:root {
    --primary-color: #ff6b81;
    --primary-light: #ffb8c1;
    --primary-dark: #e64c64;
    --secondary-color: #6c5ce7;
    --accent-color: #fdcb6e;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #f9f9f9;
    --card-bg: #fff;
    --border-color: #eee;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.prototype-container {
    width: 375px;
    height: 667px;
    background-color: var(--bg-color);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 10px solid #333;
}

/* 导航栏样式 */
.nav-tabs {
    display: flex;
    background-color: var(--card-bg);
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* 页面容器样式 */
.page-container {
    height: calc(100% - 110px);
    overflow-y: auto;
    padding-bottom: 60px;
}

.page {
    display: none;
    padding: 15px;
}

.page.active {
    display: block;
}

/* 底部导航栏样式 */
.bottom-nav {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    color: var(--text-lighter);
    cursor: pointer;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.nav-item span {
    font-size: 12px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* 首页样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.couple-info {
    display: flex;
    align-items: center;
}

.avatar-container {
    position: relative;
    width: 60px;
    height: 50px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    left: 0;
    border: 2px solid var(--primary-color);
}

.avatar.partner {
    left: 25px;
    z-index: -1;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.couple-details {
    margin-left: 30px;
}

.names {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
}

.relationship-days {
    font-size: 12px;
    color: var(--text-light);
}

.relationship-days span {
    color: var(--primary-color);
    font-weight: 600;
}

.points-display {
    text-align: right;
}

.points {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.points i {
    font-size: 16px;
}

.points-label {
    font-size: 12px;
    color: var(--text-light);
}

.banner {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
}

.quick-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 22%;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 20px;
}

.action-name {
    font-size: 12px;
    color: var(--text-color);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text-color);
}

.dish-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dish-card {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.dish-image {
    width: 120px;
    height: 120px;
    position: relative;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.dish-tag.hot {
    background-color: var(--danger-color);
}

.dish-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.dish-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.dish-description {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
    flex: 1;
}

.dish-points {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart {
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-card {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
}

.event-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 12px;
}

.event-info {
    flex: 1;
}

.event-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.event-points {
    font-size: 12px;
    color: var(--primary-color);
}

.event-trigger {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* 菜单页样式 */
.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 8px 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.search-bar i {
    color: var(--text-lighter);
    margin-right: 10px;
}

.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
}

.category-tabs {
    display: flex;
    overflow-x: auto;
    margin-bottom: 15px;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category {
    padding: 6px 15px;
    background-color: var(--border-color);
    border-radius: 15px;
    margin-right: 10px;
    font-size: 12px;
    white-space: nowrap;
    color: var(--text-light);
}

.category.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.filter, .sort {
    margin-left: 15px;
    font-size: 12px;
    color: var(--text-light);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 购物车页样式 */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.clear-cart {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.item-points {
    font-size: 14px;
    color: var(--primary-color);
}

.item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    background: none;
    font-size: 12px;
    color: var(--text-color);
    cursor: pointer;
}

.quantity {
    margin: 0 10px;
    font-size: 14px;
    color: var(--text-color);
}

.special-requests {
    margin-bottom: 20px;
}

.special-requests textarea {
    width: 100%;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    resize: none;
    outline: none;
}

.cart-summary {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-label {
    font-size: 14px;
    color: var(--text-light);
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.total-points {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.checkout-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* 订单页样式 */
.order-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 5px;
    box-shadow: var(--shadow);
}

.order-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
}

.order-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-number {
    font-size: 12px;
    color: var(--text-light);
}

.order-status {
    font-size: 12px;
    font-weight: 600;
}

.order-status.pending {
    color: var(--warning-color);
}

.order-status.completed {
    color: var(--success-color);
}

.order-status.cancelled {
    color: var(--danger-color);
}

.order-items {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    margin-bottom: 10px;
}

.order-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.order-item:last-child {
    margin-bottom: 0;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-time {
    font-size: 12px;
    color: var(--text-light);
}

.order-total {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.order-actions {
    display: flex;
    justify-content: flex-end;
}

.cancel-order, .reorder {
    border: 1px solid var(--primary-color);
    background: none;
    color: var(--primary-color);
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
}

.reorder {
    background-color: var(--primary-color);
    color: white;
}

/* 个人中心页样式 */
.profile-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.user-info, .partner-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48%;
}

.user-avatar, .partner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid var(--primary-color);
}

.user-avatar img, .partner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name, .partner-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.user-phone, .partner-phone {
    font-size: 12px;
    color: var(--text-light);
}

.points-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.points-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.points-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.points-action {
    font-size: 12px;
    color: var(--text-light);
}

.points-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.points-progress {
    margin-top: 10px;
}

.progress-bar {
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.progress-text {
    font-size: 12px;
    color: var(--text-light);
}

.menu-list {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    margin-right: 15px;
}

.menu-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
}

.menu-arrow {
    color: var(--text-lighter);
}

/* 响应式调整 */
@media (max-width: 400px) {
    .prototype-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
}

/* 动画效果 */
.nav-item, .tab, .action-item, .event-trigger, .add-to-cart, .checkout-btn, .cancel-order, .reorder {
    transition: all 0.2s ease;
}

.nav-item:active, .tab:active, .action-item:active {
    transform: scale(0.95);
}

.event-trigger:active, .add-to-cart:active, .checkout-btn:active, .cancel-order:active, .reorder:active {
    transform: scale(0.95);
    opacity: 0.9;
}